﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Icoders.MarketTracker.Core.Validation;

namespace Icoders.MarketTracker.Core.Repository
{
    public interface IBaseRepository<T> : IValidation<T> where T : class
    {
        int Save(T entity);
        T GetById(int id);
        List<T> GetAll();
        void Delete(int id);
        bool GetItemUpdatedSinceDateTime(DateTime dateTime);


    }
    public interface IBaseTransactionRepository<T> : IValidation<T> where T : class
    {
        Guid Save(T entity);
        T GetById(Guid id);
        List<T> GetAll();
        
    }
}
